package 基础语法;

public class StringBuilderLearn {
    public static void main(String[] args) {
        StringBuilder stringBuilder1 = new StringBuilder("a");

        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < 100; i++) {
            if (i % 3 == 0)
                stringBuilder.append(i);
            else if (i % 4 == 0)
                stringBuilder.append(true);
            else
                stringBuilder.append("null");
        }
        stringBuilder.reverse();
        System.out.println(stringBuilder.length());
        String s=stringBuilder.toString();
        System.out.println(stringBuilder);

    }

}
